package homework.Homework04;

public class Homework04 {
    public static void main(String[] args) {
        Worker tom = new Worker("Tom", 10000);
        tom.setSalMonth(10); // 灵活修改带薪月
        tom.printSal();

        Peasant smith = new Peasant("smith", 20000);
        smith.printSal();

        Teacher marry = new Teacher("marry", 2000);
        //老师有课时费x
        marry.setClassDay(360);
        marry.setClassSal(1000);
        marry.printSal();

        Scientist jack = new Scientist("jack", 20000);
        jack.setBonus(2000000);
        jack.printSal();
    }
}
